﻿
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace CPPProject.CPP.Dto
{
    [AutoMapTo(typeof(CPPAccount))]
    public class UpdateCPPAccountDto : EntityDto<int>
    {
        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; }
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(50)]
        public string Password { get; set; }
        /// <summary>
        /// 所属公司
        /// </summary>
        public long CompanyId { get; set; }
        /// <summary>
        /// 绑定用户
        /// </summary>
        public long? UserId { get; set; }
        /// <summary>
        /// 菜单权限
        /// </summary>
        public string MenuRights { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string name { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        [Required]
        [MaxLength(11)]

        public string phone { get; set; }
        /// <summary>
        /// Email
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Email { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? EndLoginTime { get; set; }
        /// <summary>
        /// 微信授权ID
        /// </summary>
        [MaxLength(100)]
        public string WeChtOpenID { get; set; }
        /// <summary>
        /// 账号类型
        /// </summary>
        public string AccountType { get; set; }
    }
}
